# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo5.05
# Description:
# Author:       98745
# Date:         2019/2/26
#-------------------------------------------------------------------------------

s1='today is {},the temprature is {} degrees.'
print(s1.format('saturday',24))
s2='today is {week},the temprature is {degree} degrees.'
print(s2.format(week='sunday',degree=24))
s3='taday is {week},{},the {} temprature is {degree} degrees.'
print(s3.format('aaaa',12345,week='sunday',degree=24))
s4='taday is {week},{1},the {0} temprature is {degree} degrees.'
print(s4.format('aaaa',12345,week='sunday',degree=24))
fullname=['bill','gates']
print('mr {name[1]}'.format(name=fullname))
import  math
s5='the {mod.__name__} module defines the value {mod.pi} for pi'
print(s5.format(mod=math))